package com.acegear.horizon.domain.models.jpa;

import com.fasterxml.jackson.annotation.JsonIgnore;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by guoweike on 17/3/23.
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
public class DefaultSettings {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @JsonIgnore
    private Long id;
    private String avatar;
    private String background;

    public DefaultSettings(String avatar, String background) {
        this.avatar = avatar;
        this.background = background;
    }

    public DefaultSettings() {
        this.avatar = "https://img.acegear.com/2017/2/5/5ac8197d-05c4-42c5-8c06-c20a70c2d4cd/w700";
        this.background = "https://img.acegear.com/dc756c5e-2ed0-4dd0-a8ce-7ccf48bcf1b8/w700";
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }
}
